import Layout from '@/layouts'

/**
 * 异步:动态路由  商城管理
 */
const CrmRoute = {
	path: '/crm',
	component: Layout,
	name: '客户管理',
	icon: 'peoples',
	meta: { 
		title: '客户管理' ,
		icon: 'peoples'
	},
	authCode: 'crm',
	children:[
		{
			path: 'member',
			icon: 'member',
			component: () => import('@/views/modules/crm/member/list'),
			name: '会员管理',
			meta: { 
				title: '会员管理',
				icon: 'member'
			},
			authCode: 'crm:member',
			children:[{
				path: 'view',
				component: () => import('@/views/modules/crm/member/view'),
				name: '查看详情',
				meta: {
					title: '查看会员详情',
				},
				hidden: true
			}]
		},{
			path: 'memberlevel',
			icon: 'level',
			component: () => import('@/views/modules/crm/memberlevel/list'),
			name: '会员等级',
			meta: { 
				title: '会员等级',
				icon: 'level'
			},
			authCode: 'crm:memberlevel',
			children: [
				{
					path: 'add',
					component: () => import('@/views/modules/crm/memberlevel/add'),
					name: '新增用户等级',
					meta: {
						title: '新增用户等级',
					},
					hidden: true
				},
				{
					path: 'edit',
					component: () => import('@/views/modules/crm/memberlevel/edit'),
					name: '修改用户等级',
					meta: {
						title: '修改用户等级',
					},
					hidden: true
				},
				{
					path: 'view',
					component: () => import('@/views/modules/crm/memberlevel/view'),
					name: '查看用户等级详情',
					meta: {
						title: '查看用户等级详情',
					},
					hidden: true
				},
			]
		},
	]
}
export default CrmRoute